home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 6438 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.3 KB

  1. Path: isonews.bbn.hp.com!hpbblb!news
  2. From: Matthias Dittrich <matti>
  3. Newsgroups: comp.lang.c
  4. Subject: Re: String Encryption
  5. Date: 22 Feb 1996 13:11:26 GMT
  6. Organization: Hewlett-Packard Co.
  7. Message-ID: <4ghq1u$sed@hpbblb.bbn.hp.com>
  8. References: <1996Feb21.101532.15110@es.dupont.com> <1996Feb21.174407.20730@newshost.micro.ti.com>
  9. NNTP-Posting-Host: trabant.bbn.hp.com
  10. Mime-Version: 1.0
  11. Content-Type: text/plain; charset=us-ascii
  12. Content-Transfer-Encoding: 7bit
  13. X-Mailer: Mozilla 1.1N (X11; I; HP-UX A.09.07 9000/712)
  14. X-URL: news:1996Feb21.174407.20730@newshost.micro.ti.com
  15.  
  16. brett@racerx.micro.ti.com (Brett L. Huber) wrote:
  17. >Malcolm Smart (MALCOLM.SMART@CONOCO.DUPONT.COM) wrote:
  18. >> Has anybody out there got any small routines that I can apply to strings 
  19. >> which will effectively encrypt them (and decrypt!).  It's not a matter of 
  20. >> state security so it doesn't have to be that secure, just make it 
  21. >> unreadable.  
  22. >
  23. >It really depends on what level of "unreadability" you want.  Who are
  24. >you protecting the data from?  If you aren't protecting a secret, try
  25. >"rot13," which translates A->N, B->O, ... Z->M.
  26. >
  27. >For an introduction to cryptographic techniques, try the sci.crypt FAQ:
  28. >http://www.cis.ohio-state.edu/hypertext/faq/bngusenet/sci/crypt/top.html
  29. >
  30. > ...
  31. You also can use the crypt() function (see man 3 crypt).
  32.  
  33. Good luck,
  34. Matthias
  35.  
  36.